package com.ouc.yyi.user.springcloud.user.userInfo.feign;

import com.ouc.yyi.user.springcloud.user.userInfo.feign.bo.CardBo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "card", path = "/card/card")
public interface CardFeignClient {

    @PostMapping("/info")
    CardBo getCardInfoByMobile(@RequestBody Map<String, Object> map);

    @GetMapping("/hello")
    String getHello(@RequestParam("info") String info);

}
